
export function getDetail(iid){
  return axios({
    url:'/detail',
    params:{
      iid
    }
  })
}
export function getRecommend(){
  return axios({
    url:'/recommend'
  })
}
export class Goods{
  constructor(itemInfo,colums,services) {
       this.title=itemInfo.title,
       this.desc = itemInfo.desc
       this.newPrice = itemInfo.price
       this.oldPrice = itemInfo.oldPrice
       this.discount = itemInfo.discountDesc
       this.colums = colums
       this.services = services
       this.realPrice = itemInfo.lowNowPrice

  }
}
export class Shop{
  constructor(shopInfo) {
      this.logo = shopInfo.shopLogo
      this.name = shopInfo.name
      this.fans = shopInfo.cFans
      this.sells = shopInfo.cSells
      this.scroe = shopInfo.score
      this.goodsCount = shopInfo.cGoods
      // this.url = shopInfo.allGoodsUrl
  }
}

export class Detail{
  constructor(detailInfo) {
      this.desc = detailInfo.desc
      this.img = detailInfo.detailImage[0].list
  }
}
export class GoodsParams{
  constructor(info,rule){
    this.image =info.images ? images[0]:'',
    this.infos = info.set
    this.sizes = rule.tables
  }
}
